using System;

namespace Hymans.Charles.JAudit.SyntaxNodes
{
	// TODO: should have two recursive blocks!! => I am sure I am missing if then elses within if then elses => do a test
	public class IfThenElseStatement : JavaStatement
	{
		public bool HasElseBranch
		{
			get;
			private set;
		}

		internal IfThenElseStatement(int lineNumber, bool hasElseBranch) : base(lineNumber)
		{
			this.HasElseBranch = hasElseBranch;
		}
		
		override internal protected void Visit(IVisitor visitor)
		{
			visitor.ProcessIfThenElseStatement(this);
		}
	}
}